<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <!--<link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">-->
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">bid</th>
			  <th width="400">品牌名称</th>
			  <th>LOGO</th>
			 <th>排序</th>
			 <th>是否热门</th>
			  <th width="210">操作</th>
			</tr>
			{{foreach from="$data" value="$v"}}
			<tr>
				<td>{{$v['bid']}}</td>
				<td>{{$v['bname']}}</td>
				<td><img src="{{__ROOT__}}/{{$v['logo']}}" alt="" width="50" /></td>
				<td>{{$v['bsort']}}</td>
				{{if value="$v['is_hot'] eq 0"}}
				<td>否</td>
				{{else}}
				<td>是	</td>
				{{endif}}
				<td>
					<!--<a href="" class="btn btn-sm btn-primary">添加子类</a>-->
					<a href="{{U('Brand/edit',array('bid'=>$v['bid']))}}" class="btn btn-sm btn-warning">编辑</a>
					<a href="javascript:;" class="btn btn-sm btn-danger" onclick="if(confirm('确定要删除吗？亲~~')) location.href='{{U("Brand/del",array("bid"=>$v['bid']))}}'">删除</a>
				</td>
			</tr>
			{{endforeach}}
		</table>
	</body>
</html>
